home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD018b.dsk
/
TEXT FILE READER.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
667b
|
18 lines
5 D$ = CHR$(13) + CHR$(4)
10 HOME : VTAB 4: HTAB 12: PRINT "TEXT FILE READER": PRINT
15 PRINT : PRINT "<1> CATALOG": PRINT "<2> READ A TEXT FILE": PRINT "<3> QUIT": PRINT : PRINT "WHICH?";
20 GET G$: IF G$ <"1" OR G$ >"3" THEN 20
25 ON VAL(G$) GOTO 30,40,90
30 PRINT : PRINT D$"CATALOG"
35 GOTO 15
40 HTAB 1: CALL -868: INPUT "ENTER FILE NAME:";F$
45 PRINT : PRINT "DO YOU WANT A PRINTOUT?";: GET P$: PRINT P$
50 IF P$ = "Y" THEN PRINT "<CTRL-D>PR#1"
55 PRINT D$"MONI"
60 PRINT D$"OPEN"F$;D$"READ"F$
65 ONERR GOTO 75
70 GET C$: PRINT C$;: GOTO 70
75 PRINT D$"CLOSE"F$
80 PRINT "<CTRL-D>PR#0"
85 GOTO 15
90 PRINT : REM IMPROVED BY CHRIS LOTT